<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
	<jsp:include page="../common/header.jsp"/>
	<jsp:include page="../../common/mydate.jsp"></jsp:include>
	<jsp:include page="../../common/validform.jsp"></jsp:include>
	<jsp:include page="../../common/layer.jsp"></jsp:include>

</head>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="${pathUrl}/admin/goodsCatalog/index">产品分类</a></li>
        <li><a href="#">新增</a></li>
    </ul>
</div>
<form action="${pathUrl}/admin/goodsCatalog/saveOrUpdate" class="vfrom" enctype="multipart/form-data" method="post"  enctype="application/x-www-form-urlencoded">
<input type="hidden" name="id" value="${goodsCatalog.id }">
<input type="hidden" name="is_add" value="${is_add }">
<div class="session-main">
    <div class="formbody">
        <ul class="forminfo">
            <li><label>名称<b>*</b></label><input value="${goodsCatalog.name }" datatype="*" nullmsg="请输入广告名称！" name="name" id="name"  type="text" class="dfinput"><i class="Validform_checktip">请输入名称</i></li>
            <li><label>备注</label><textarea name="remark" cols="" rows="" class="textinput">${goodsCatalog.remark }</textarea></li>
            <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存">
               <input type="button" class="btn" onclick="javascript:window.location.href='${pathUrl}/admin/goodsCatalog/index'" value="返回" style=" background: #57e980;">
            </li>
        </ul>
    </div>
</div>
</form>
    <script type="text/javascript">
   /*$(function(){
         //验证
	    initValidFrom(".vfrom",function(data){
		  //回调方法
		  if(data.status==1){
			  ydlMsg(data.msg);	
			  setTimeout(function(){
				  window.location.href="${pathUrl}/admin/goodsCatalog/index";
			  },300);
            }else{
                //提示失败
            	ydlMsg(data.msg);
            }
	   });*/


	
 /*  });*/
 </script>
</body>
</html>